//***************************************************************
//  File:    GameObject.h
//  Date:    12/17/2012
//  Author:  liangxc (liangxc2010@gmail.com)
//-------------------------------------------------------------
//
//-------------------------------------------------------------
//  This file is part of Hare2D Game Engine.
//  Copyright (C) All Rights Reserved
//***************************************************************
//
//***************************************************************
#include "PCH.h"
#include "Component.h"

namespace hare
{
	HARE_IMPLEMENT_ABSTRACT_CLASS(Component, Object, 0)
	{
		HARE_META(enable, bool)
	}

	Component::Component() : enable(true) {}
	Component::~Component() {}


	bool Component::getEnable()
	{
		return enable;
	}

	void Component::setEnable(bool flag)
	{
		enable = flag;
	}
}